package com.pay.sdk;

import android.app.Application;

/**
 * Created by Steven on 2016/12/6 0006.
 */

public class PayApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        getPackage();
    }

    private void getPackage() {
        PayAppPackage.getInstance().init(getApplicationContext());
        PayAppPackage appPackage = PayAppPackage.getInstance();
        String packageName = appPackage.getPackageName();
        String versionCode = appPackage.getVersionCode();
        String versionName = appPackage.getVersionName();
        String packName = appPackage.getPackName();
        PayLogUtil.log(" packageName = " + packageName + " versionCode = " + versionCode + " versionName = " + versionName + " packName = " + packName);
    }
}
